<!--
 * @Author: wangshuguang
 * @Date: 2022-01-05 15:35:14
 * @LastEditTime: 2022-01-05 15:48:19
 * @LastEditors: wangshuguang
 * @Description: 字符串转vNode
-->

<script>
import Vue from 'vue';
export default {
  props:{
    // 支持纯字符串  html字符串
    text:String,
  },
  render(h){
    let tem = `<div>${this.text}</div>`
    return h(Vue.extend({ template:tem }))
  }
}
</script>